package com.ychen.authority.Shiro;

import org.apache.shiro.authc.AuthenticationToken;

import java.util.Map;

/**
 * @ Author     ：ChenYuliao
 * @ Date       ：Created in 22:35 2018/10/22 0022
 * @ Description：
 */
public class StatelessToken implements AuthenticationToken {
    private String userName;
    private Map<String, ?> params;
    private String clientDigest;
    //省略部分代码
    public Object getPrincipal() {  return userName;}
    public Object getCredentials() {  return clientDigest;}


    public StatelessToken(String userName, Map<String, ?> params, String clientDigest) {
        this.userName = userName;
        this.params = params;
        this.clientDigest = clientDigest;
    }
}
